﻿<%@ Page MasterPageFile="~/Wap/JQMPage.master" Language="C#" AutoEventWireup="true"
    CodeBehind="WxDataApplyDoc.aspx.cs" Inherits="ZLCMS.Web.Interface.weixin.Html.WxDataApplyDoc" %>

<%@ Import Namespace="ZLCMS.Business.Util" %>
<asp:Content runat="server" ID="header" ContentPlaceHolderID="header">
<style type="text/css">
#formId{margin: 0px auto; border-radius: 5px; padding: 1em; border:1px solid #CCCCCC; background: none repeat scroll 0px 0px rgba(255, 255, 255, 0.8);}
</style>
</asp:Content>
<asp:Content runat="server" ID="main" ContentPlaceHolderID="main">
    <div class="ui-title"><%=_applyDb.Title%></div>
    <div class="ui-text"><%=_applyDb.Content%></div>
    
    <form id="formId" command='CommonWxApply'>
    <input name="ApplyId" type="hidden" command-param='ApplyId' value="<%=_applyDb.Id%>" />
    <input name="Account" type="hidden" command-param='OwnerAccount' value="<%=Request["Account"]%>" />
    <input name="Kind" type="hidden" command-param="Kind" value="<%=_applyDb.Kind%>" />
    <input name="WxId" type="hidden" command-param="WxId" value="<%=Request["WxId"]%>" />
    <%= CreateOption() %>
    <button id="btapply" class="ui-btn" type="button" onclick="executeFormCommonCommand('formId', applyDone)">
        提交</button>
    <div data-role="popup" id="dialogPage" data-dismissible="false" style="max-width: 400px;"
        data-overlay-theme="b">
        <div data-role="header" data-theme="a">
            <h2>
                提示</h2>
            <a href="#" class="ui-btn ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-right"
                role="button" data-rel="back">关闭</a>
        </div>
        <div role="main" class="ui-content">
            <p>
                This action cannot be undone.</p>
            <a href="#" data-role="button" class="ui-btn ui-btn-b ui-corner-all ui-icon-check"
                data-rel="back">确定</a>
        </div>
    </div>
    </form>
</asp:Content>
<asp:Content runat="server" ID="footer" ContentPlaceHolderID="footer">
    <script type="text/javascript">
        function applyDone(data) {
            showDialogPage('成功', data);
            $("#btapply").text("已提交");
            $("#btapply").attr("disabled", "disabled");
        }
        $('#formId').openJQMValidator();
    </script>
</asp:Content>
